package cn.momoshenchi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.momoshenchi.pojo.UserCollectArticle;
import cn.momoshenchi.service.UserCollectArticleService;
import cn.momoshenchi.mapper.UserCollectArticleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class UserCollectArticleServiceImpl extends ServiceImpl<UserCollectArticleMapper, UserCollectArticle>
implements UserCollectArticleService{

    @Override
    public List<UserCollectArticle> selectByUserId(Long userId)
    {
        List<UserCollectArticle> list = list(new QueryWrapper<UserCollectArticle>().eq("user_id", userId));
        return  list;


    }
}




